Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reachable and IP leak test #44

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

akuntsch
Copy link
Contributor

Fix the instance reachable checks when Basic Authentication is enabled in the *arr instance by GETing /api?apikey=<ApiKey> instead of / without any authentication.
I'm not 100% sure that all supported *arrs return HTTP 200 when GETing /api, but it seems to work for Sonarr and Readarr on my end.

Also added a configuration option to disable the IP leak test. Setting IPLEAKTEST__ENABLED=false as docker environment variable will disable the check.

Fixes #40.

@akuntsch akuntsch changed the title Fix reachable and ipleak test Fix reachable and IP leak test Oct 19, 2024
@akuntsch akuntsch force-pushed the fix-reachable-and-ipleak-test branch 3 times, most recently from 44fd5fd to dd847b4 Compare October 19, 2024 18:28
Fixes failing reachable checks when Basic Authentication is enabled in
Sonarr, Radarr, etc.
@akuntsch akuntsch force-pushed the fix-reachable-and-ipleak-test branch from dd847b4 to 072828b Compare October 19, 2024 18:32
builder.Services.AddSingleton<CacheService>();
builder.Services.AddSingleton<ProxyRequestService>();
builder.Services.AddSingleton<ArrApplicationFactory>();
builder.Services.AddHostedService<ArrSyncBackgroundService>();
builder.Services.AddSingleton<IHostedService, HttpProxyService>();

var app = builder.Build();

if (app.Configuration.GetValue<bool>("IpLeakTest:Enabled")) {
Helper.ShowLogo();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich würde das Logo immer anzeigen lassen

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Da hast du absolut recht. Ist angepasst.

UmlautAdaptarr/appsettings.json Outdated Show resolved Hide resolved
@akuntsch akuntsch force-pushed the fix-reachable-and-ipleak-test branch from 072828b to da8ba97 Compare October 21, 2024 05:40
@akuntsch akuntsch force-pushed the fix-reachable-and-ipleak-test branch from da8ba97 to 27b8eab Compare October 21, 2024 05:42
@PCJones PCJones self-requested a review October 21, 2024 12:25
@PCJones PCJones merged commit 3f5d7bb into PCJones:master Oct 21, 2024
PCJones added a commit that referenced this pull request Oct 21, 2024
PCJones added a commit that referenced this pull request Oct 21, 2024
@PCJones
Copy link
Owner

PCJones commented Oct 21, 2024

Bitte noch mal neu erstellen mit develop als branch Ziel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No connection to sonarr since update
3 participants